package com.it.data_queue.blocking_queue;

/**
 * 阻塞队列接口（用锁保证线程安全）
 *
 * @author: Coke
 * @DateTime: 2023/06/18/12:17
 **/
public interface BlockingQueue<E> {
    
    void offer (E e) throws InterruptedException;
    
    boolean offer (E e, long timeout) throws InterruptedException;
    
    E pool () throws InterruptedException;
}
